<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('报表数据初始化记录')" />
</head>

<body class="gray-bg">
	<div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="role-form">
				    <input type="hidden" id="idUserOuter" name="cd" th:value="${cdFunc}">
					<div class="select-list">
						<ul>
							<li>
								月份：<input type="text" name="mm" th:value="${month}"/>
							</li>
							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
							    <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
	        
	        <div class="col-sm-12 select-table table-striped">
			    <table id="bootstrap-table"></table>
			</div>
		</div>
	</div>
	<th:block th:include="include :: footer" />
	<script th:inline="javascript">
		$(function() {
			var options = {
				url: "/etl/rep/init/list",
				modalName: "报表数据初始化记录",
				columns: [{
					checkbox: true
				},
					{
						field: 'id',
						title: '主键',
						visible: false
					},
					{
						field: 'mm',
						title: '月份'
					},
					{
						field: 'cd',
						title: '编码'
					},
					{
						field: 'na',
						title: '名称'
					},
					{
						field: 'num',
						title: '数据量'
					},
					{
						field: 'cdTb',
						title: '表名'
					},
					{
						field: 'fgCheck',
						title: '审核标志',
						formatter: function(value, item, index) {
							if(item.fgCheck==1) {
								return "已审核";
							} else {
								return "未审核"
							}
						}
					},
					{
						field: 'dtInit',
						title: '初始时间'
					},
					{
						field: 'empInit',
						title: '初始人'
					}]
			};
			$.table.init(options);
		});
		
		/* 添加用户-选择用户-提交 */
		function submitHandler() {
			$.modal.close();
		}
	</script>
</body>
</html>